home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2004 April / VPR0404.ISO / PCTUNE / MBM5351 / mbm5351.exe / {app} / misc / readme.txt < prev    next >
Text File  |  2003-10-17  |  4KB  |  129 lines

  1. ****************************************************************
  2. wm_close.exe
  3. ****************************************************************
  4.  
  5. tool to close any program as long as it responds to the wm_close API call,
  6. to use it call it with the window class or window name as parameter, it will
  7. 1st try to locate a window wich has the given parameter as class name, if that
  8. fails it will try to locate a window with the given parameter as name.
  9.  
  10.  
  11. ****************************************************************
  12. mbm5msg.exe
  13. ****************************************************************
  14.  
  15. tool to send a message to mbm, starting it with one of the switches below will
  16. make it send that message to mbm.
  17.  
  18. 0  WM_WRITELH
  19. 1  WM_OPENSETTINGS
  20. 2  WM_OPENDASHBOARD
  21. 3  WM_OPENHELP
  22. 4  WM_CLOSEMBM
  23. 5  WM_CLOSEOSD
  24. 6  WM_OPENOSD
  25. 7  WM_DUMPISA
  26. 8  WM_DUMPSMB
  27. 9  WM_DUMPPCI
  28. 10 WM_VIADUMP
  29.  
  30.  
  31. ****************************************************************
  32. mbmstarter.dll
  33. ****************************************************************
  34.  
  35. This may ONLY be distributed and used by programs that are fully FREEWARE,
  36. you are NOT ALLOWED to use this DLL with shareware, payware or commercial programs.
  37.  
  38. now that the legal part is out of the way, with this dll you can launch
  39. the mbm.dll without using mbm, of course you must have configured mbm correctly
  40. if you want this to work correctly.  Once the mbm.dll is running you freeware
  41. program can access the sharedmemory like normal
  42.  
  43.  
  44. the delphi code to start the dll is like this:
  45.  
  46. type
  47.   TStartDLL = function : Integer; stdcall;
  48.   TStopDLL  = function : Integer; stdcall;
  49.  
  50. var
  51.   Form1: TForm1;
  52.   CStartDLL : TStartDLL;
  53.   CStopDLL  : TStopDLL;
  54.   DLLHandle : THandle;
  55.  
  56. implementation
  57.  
  58. {$R *.DFM}
  59.  
  60. procedure TForm1.Button1Click(Sender: TObject);
  61. var
  62.   X       : Integer;
  63. begin
  64.   if DLLHandle=0 then
  65.   begin
  66.     DLLHandle:=LoadLibrary(PChar(ExtractFilePath(ParamStr(0))+'MBMStarter.dll'));
  67.     if DLLHandle <> 0 then
  68.     begin
  69.       @CStartDLL:=GetProcAddress(DLLHandle, 'Start');
  70.       X:=CStartDLL;
  71.       if X <> 1 then Showmessage('Error Starting MBM.DLL, Error : '+IntToStr(X))
  72.                 else Showmessage('MBM.DLL Started') ;
  73.     end
  74.     else Showmessage('Error Loading StarterDLL');
  75.   end;
  76. end;
  77.  
  78. procedure TForm1.Button2Click(Sender: TObject);
  79. begin
  80.   if DLLHandle<>0 then
  81.   begin
  82.     @CStopDLL:=GetProcAddress(DLLHandle, 'Stop');
  83.     CStopDLL;
  84.     FreeLibrary(DLLHandle);
  85.     DLLHandle:=0;
  86.     Showmessage('Starter DLL unloaded');
  87.   end;
  88. end;
  89.  
  90. the mbm5starter.dll will always created a sub dir called dll and copy the mbm.dll into
  91. this directory, this is needs to be done and can not be avoided
  92.  
  93. as of version > 5.3.5.0 there are 2 new function:
  94.  
  95. function SetPrio(X : Byte) : Boolean; stdcall;
  96. function SendPath(Path : Pchar) : Boolean;
  97.  
  98. With SetPrio you can increase the priority of the timer loop in the dll, use the following
  99. table:
  100.  
  101. 0: Idle
  102. 1: Lowest
  103. 2: Lower
  104. 3: Normal
  105. 4: Higher
  106. 5: Highest
  107. 6: TimeCritical
  108.  
  109. With SendPath you can send a new path to the dll in case it has no access to HKEY_CURRENT_USER,
  110. if you get a result of 0 back then this is your problem, send your new path BEFORE you do the
  111. start function.  The path should contain the base directory of MBM
  112.  
  113.  
  114. ****************************************************************
  115. mbm 5.ini
  116. ****************************************************************
  117.  
  118. This is a clean version of the MBM 5.ini file, if you ever get into troubles then
  119. simply close mbm and copy this OVER the version in the /data directory and you 
  120. can start clean.
  121.  
  122.  
  123. ****************************************************************
  124. uninstall problems.bat
  125. ****************************************************************
  126.  
  127. If your having errors uninstalling which included INSTALL.LOG then 
  128. please run this batch file, it should start the uninstaller without
  129. problems